<?php $form = $this->beginWidget('CActiveForm', array('id' => 'site-form', 'enableAjaxValidation' => true)); ?>

<table cellspacing="1" cellpadding="4" width="100%">
  <tr align="center" valign="top">
    <td width="*" align="center" valign="top"><!-- ######### begin ######### -->
      <div class="Block">
        <div class="BlockBar"> <?php echo CHtml::activeLabel($model, 'title'); ?></div>
        <!-- tab bar -->
        <div id="tabbar-div">
          <ul>
            <li class="tab-front"><a href="<?php echo $this->createUrl('site/');?>"><?php echo Yii::t('default', '系统配置');?></a></li>
            <li class="tab-back"><a href="<?php echo $this->createUrl('site/video');?>"><?php echo Yii::t('default', '视频配置');?></a></li>
            <li class="tab-back"><a href="<?php echo $this->createUrl('site/user');?>"><?php echo Yii::t('default', '用户配置');?></a></li>
          </ul>
        </div>
        <!-- tab end -->
        <?php if($this->message):?>
        <span>
        <label class="success"><?php echo $this->message;?></label>
        </span>
        <?php endif;?>
        <table width="100%" cellpadding="4" cellspacing="1" class="tab">
          <tr class="row" >
            <td width="12%" class="align-right" ><?php echo $form->labelEx($model, 'site_name', array('class' => 'title')); ?>:</td>
            <td width="88%"><?php echo $form->textField($model, 'site_name', array('size' => 60)); ?><?php echo $form->error($model, 'site_name'); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_title', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_title', array('size' => 60)); ?><?php echo $form->error($model, 'site_title'); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_domain', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_domain', array('size' => 60));?><?php echo $form->error($model, 'site_domain'); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_keywords', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_keywords', array('size' => 60)); ?><?php echo $form->error($model, 'site_keywords'); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_description', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->textField($model, 'site_description', array('size' => 60)); ?> <?php echo $form->error($model, 'site_description'); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_run_status', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->radioButtonList($model, 'site_run_status', $model->getRunDataList(), array('class' => 'radio', 'separator' => '')); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_keeplive', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->dropDownList($model, 'site_keeplive', $model->getKeepliveDataList(), array('class' => 'radio', 'separator' => '')); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_save_log_day', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->dropDownList($model, 'site_save_log_day', $model->getSaveLogDataList(), array('class' => 'radio', 'separator' => '')); ?></td>
          </tr>
          <tr class="row">
            <td class="align-right"><?php echo $form->labelEx($model, 'site_datezone', array('class' => 'title')); ?>:</td>
            <td><?php echo $form->dropDownList($model, 'site_datezone', $model->getSaveLogDataList(), array('class' => 'radio', 'separator' => '')); ?></td>
          </tr>
          <tr class="rows">
            <td class="rows"></td>
            <td class="rows"><?php echo CHtml::submitButton(Yii::t('app', '提 交'), array('class' => 'btn')); ?></td>
          </tr>
        </table>
      </div></td>
  </tr>
</table>
<?php $this->endWidget(); ?>
